<?php
namespace app\index\controller;
use RongCloud;
use think\Controller;
use app\api\controller\v1\ali_Sms as SMS;
use Aliyun\Core\Config;
use think\Cache;

class Index extends Controller
{
    public function index()
    {
        /*$data = [
            "key" => "m7ua80gbmjhkm",
            "secret" => "j3XGz5YTjYs",
        ];
        $RongCloud = new RongCloud($data["key"],$data["secret"]);*/
        //$result = $rc->user()->getToken('userId1', 'username', 'http://www.rongcloud.cn/images/logo.png');
        //$result = $RongCloud->user()->checkOnline('doctor_1');
        //$result = $RongCloud->user()->addBlacklist('51', 'admin');
        //$result = $RongCloud->message()->publishPrivate('admin','51', 'RC:TxtMsg',"{\"content\":\"what's your name?\",\"extra\":\"helloExtra\",\"duration\":20}", 'thisisapush', '{\"pushData\":\"hello\"}', '4', '1', '0', '0', '0');
        //$result = $RongCloud->user()->queryBlacklist('50');
        //result = $RongCloud->user()->removeBlacklist('51', 'askjdfh');
        //$randnum = rand(1,10) ;
        //$ali = SMS::getInstance();
        //$result = $ali->sendSMS('18903022614');
        //$status = $ali->checkValidPhone('18903022614');
        //$status =config('ali.valid_time');
        $result = "1234567";
        var_dump($result);

    }
}
